package org.xb.DemoDecorator;

/**
 * @Author
 * @Description
 * @Date created in 10:00 2023/12/7
 */
public class Main {
    public static void main(String[] args) {
        ConcreteComponent c = new ConcreteComponent();
        AddPearlDecorator ap = new AddPearlDecorator();
        AddCoconutDecorator ac = new AddCoconutDecorator();
        ap.setComponent(c);
        ac.setComponent(ap);
        ac.orderMilkTea();

    }
}
